covariance_matrix Function

public pure function covariance_matrix(x) result(c)

Computes the covariance matrix where and is computed by design_matrix.

See Also

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x(:,:)

An M-by-N matrix containing the formatted independent data matrix as computed by design_matrix.

Return Value real(kind=real64), allocatable, (:,:)

The N-by-N covariance matrix.